package io.renren.common.dto;

import io.renren.common.enums.TeachType;

import java.util.Date;

/**
 * @author wangyi
 * @mail 794651397@qq.com
 * @createdate 2018/4/4 10:39
 **/
public class TeachHistory {
    private Long id;
    //名称
    private String name;
    //简介
    private String introduce;
    //图片
    private String img;
    //类型
    private Integer type;
    //上传者姓名
    private String uploadUser;
    //
    private Date historyTime;
    //
    private String typeName;

    public String getTypeName() {
        return TeachType.getNameByValue(type);
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    /**
     * 设置：id
     */
    public void setId(Long id) {
        this.id = id;
    }
    /**
     * 获取：id
     */
    public Long getId() {
        return id;
    }
    /**
     * 设置：名称
     */
    public void setName(String name) {
        this.name = name;
    }
    /**
     * 获取：名称
     */
    public String getName() {
        return name;
    }
    /**
     * 设置：简介
     */
    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }
    /**
     * 获取：简介
     */
    public String getIntroduce() {
        return introduce;
    }
    /**
     * 设置：图片
     */
    public void setImg(String img) {
        this.img = img;
    }
    /**
     * 获取：图片
     */
    public String getImg() {
        return img;
    }
    /**
     * 设置：类型
     */
    public void setType(Integer type) {
        this.type = type;
    }
    /**
     * 获取：类型
     */
    public Integer getType() {
        return type;
    }
    /**
     * 设置：上传者姓名
     */
    public void setUploadUser(String uploadUser) {
        this.uploadUser = uploadUser;
    }
    /**
     * 获取：上传者姓名
     */
    public String getUploadUser() {
        return uploadUser;
    }

    public Date getHistoryTime() {
        return historyTime;
    }

    public void setHistoryTime(Date historyTime) {
        this.historyTime = historyTime;
    }
}
